  /**
   * Generate time : 2013-08-20 8:14:09
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.cb.domain;

import com.baosight.iplat4j.util.NumberUtils;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCBSimulateYearPlan 
 * table comment : 模拟年计划主表 
 */
public class ZMCBSimulateYearPlan extends DaoEPBase {

	private String fdKeyId = " ";		/* FD_KEY_ID*/
	private Long fdNo = new Long(0);	/* 编号*/
	private String fdYear = " ";		/* 计划年份*/
	private String fdBeginDate = " ";		/* 开始日期*/
	private String fdEndDate = " ";		/* 结束日期*/
	private String fdPlanName = " ";		/* 计划名称*/
	private String fdPerson = " ";		/* 编制人*/
	private String fdDate = " ";		/* 编制日期*/
	private Double fdMineTarget = new Double(0);		/* 采煤指标*/
	private Double fdGrubTarget = new Double(0);		/* 掘进指标*/
	private Double fdDeploitationTarget = new Double(0);		/* 开拓指标*/
	private String fdScheduleMethod = " ";		/* 排程算法*/

	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("FD_KEY_ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdNo");
	eiColumn.setType("N");
	eiColumn.setScaleLength(0);
	eiColumn.setFieldLength(38);
	eiColumn.setDescName("编号");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdYear");
	eiColumn.setFieldLength(4);	
	eiColumn.setDescName("计划年份");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdBeginDate");
	eiColumn.setFieldLength(14);	
	eiColumn.setDescName("开始日期");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdEndDate");
	eiColumn.setFieldLength(14);	
	eiColumn.setDescName("结束日期");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPlanName");
	eiColumn.setFieldLength(100);	
	eiColumn.setDescName("计划名称");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPerson");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("编制人");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDate");
	eiColumn.setFieldLength(14);	
	eiColumn.setDescName("编制日期");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMineTarget");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("采煤指标");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdGrubTarget");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("掘进指标");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDeploitationTarget");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("开拓指标");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdScheduleMethod");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("排程算法");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCBSimulateYearPlan() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - FD_KEY_ID
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - FD_KEY_ID
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	
	/**
	 * get the fdNo - 编号
	 * @return the fdNo
	 */
	public Long getFdNo() {
		return this.fdNo;
	}
	
	/**
	 * set the fdNo - 编号
	 */
	public void setFdNo(Long fdNo) {
		this.fdNo = fdNo;
	}
	
	/**
	 * get the fdYear - 计划年份
	 * @return the fdYear
	 */
	public String getFdYear() {
		return this.fdYear;
	}
	
	/**
	 * set the fdYear - 计划年份
	 */
	public void setFdYear(String fdYear) {
		this.fdYear = fdYear;
	}
	
	/**
	 * get the fdBeginDate - 开始日期
	 * @return the fdBeginDate
	 */
	public String getFdBeginDate() {
		return this.fdBeginDate;
	}
	
	/**
	 * set the fdBeginDate - 开始日期
	 */
	public void setFdBeginDate(String fdBeginDate) {
		this.fdBeginDate = fdBeginDate;
	}
	
	/**
	 * get the fdEndDate - 结束日期
	 * @return the fdEndDate
	 */
	public String getFdEndDate() {
		return this.fdEndDate;
	}
	
	/**
	 * set the fdEndDate - 结束日期
	 */
	public void setFdEndDate(String fdEndDate) {
		this.fdEndDate = fdEndDate;
	}
	
	/**
	 * get the fdPlanName - 计划名称
	 * @return the fdPlanName
	 */
	public String getFdPlanName() {
		return this.fdPlanName;
	}
	
	/**
	 * set the fdPlanName - 计划名称
	 */
	public void setFdPlanName(String fdPlanName) {
		this.fdPlanName = fdPlanName;
	}
	
	/**
	 * get the fdPerson - 编制人
	 * @return the fdPerson
	 */
	public String getFdPerson() {
		return this.fdPerson;
	}
	
	/**
	 * set the fdPerson - 编制人
	 */
	public void setFdPerson(String fdPerson) {
		this.fdPerson = fdPerson;
	}
	
	/**
	 * get the fdDate - 编制日期
	 * @return the fdDate
	 */
	public String getFdDate() {
		return this.fdDate;
	}
	
	/**
	 * set the fdDate - 编制日期
	 */
	public void setFdDate(String fdDate) {
		this.fdDate = fdDate;
	}
	
	/**
	 * get the fdMineTarget - 采煤指标
	 * @return the fdMineTarget
	 */
	public Double getFdMineTarget() {
		return this.fdMineTarget;
	}
	
	/**
	 * set the fdMineTarget - 采煤指标
	 */
	public void setFdMineTarget(Double fdMineTarget) {
		this.fdMineTarget = fdMineTarget;
	}
	
	/**
	 * get the fdGrubTarget - 掘进指标
	 * @return the fdGrubTarget
	 */
	public Double getFdGrubTarget() {
		return this.fdGrubTarget;
	}
	
	/**
	 * set the fdGrubTarget - 掘进指标
	 */
	public void setFdGrubTarget(Double fdGrubTarget) {
		this.fdGrubTarget = fdGrubTarget;
	}
	
	/**
	 * get the fdDeploitationTarget - 开拓指标
	 * @return the ffdDeploitationTarget
	 */
	public Double getFdDeploitationTarget() {
		return this.fdDeploitationTarget;
	}
	
	/**
	 * set the fdDeploitationTarget - 开拓指标
	 */
	public void setFdDeploitationTarget(Double fdDeploitationTarget) {
		this.fdDeploitationTarget = fdDeploitationTarget;
	}
	
	/**
	 * get the fdScheduleMethod - 排程算法
	 * @return the fdScheduleMethod
	 */
	public String getFdScheduleMethod() {
		return this.fdScheduleMethod;
	}
	
	/**
	 * set the fdScheduleMethod - 排程算法
	 */
	public void setFdScheduleMethod(String fdScheduleMethod) {
		this.fdScheduleMethod = fdScheduleMethod;
	}
	
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdNo(NumberUtils.toLong(StringUtils.toString(map.get("fdNo")), fdNo));
		setFdYear(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdYear")), fdYear));
		setFdBeginDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdBeginDate")), fdBeginDate));
		setFdEndDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEndDate")), fdEndDate));
		setFdPlanName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPlanName")), fdPlanName));
		setFdPerson(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPerson")), fdPerson));
		setFdDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDate")), fdDate));
		setFdMineTarget(NumberUtils.toDouble(StringUtils.toString(map.get("fdMineTarget")), fdMineTarget));
		setFdGrubTarget(NumberUtils.toDouble(StringUtils.toString(map.get("fdGrubTarget")), fdGrubTarget));
		setFdDeploitationTarget(NumberUtils.toDouble(StringUtils.toString(map.get("fdDeploitationTarget")), fdDeploitationTarget));
		setFdScheduleMethod(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdScheduleMethod")), fdScheduleMethod));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdNo",StringUtils.toString(fdNo, eiMetadata.getMeta("fdNo")));	
			map.put("fdYear",StringUtils.toString(fdYear, eiMetadata.getMeta("fdYear")));	
			map.put("fdBeginDate",StringUtils.toString(fdBeginDate, eiMetadata.getMeta("fdBeginDate")));	
			map.put("fdEndDate",StringUtils.toString(fdEndDate, eiMetadata.getMeta("fdEndDate")));	
			map.put("fdPlanName",StringUtils.toString(fdPlanName, eiMetadata.getMeta("fdPlanName")));	
			map.put("fdPerson",StringUtils.toString(fdPerson, eiMetadata.getMeta("fdPerson")));	
			map.put("fdDate",StringUtils.toString(fdDate, eiMetadata.getMeta("fdDate")));	
			map.put("fdMineTarget",StringUtils.toString(fdMineTarget, eiMetadata.getMeta("fdMineTarget")));	
			map.put("fdGrubTarget",StringUtils.toString(fdGrubTarget, eiMetadata.getMeta("fdGrubTarget")));	
			map.put("fdDeploitationTarget",StringUtils.toString(fdDeploitationTarget, eiMetadata.getMeta("fdDeploitationTarget")));	
			map.put("fdScheduleMethod",StringUtils.toString(fdScheduleMethod, eiMetadata.getMeta("fdScheduleMethod")));	
			
		return map;
	
	}
}